package com.example.demo.service;


import com.example.demo.base.JPushBase;
import com.example.demo.config.FeignRequestInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "jpush", url = "https://api.jpush.cn/v3/push", configuration = FeignRequestInterceptor.class)
@RestController
public interface TextService {

    @PostMapping
    String setMessage(@RequestBody JPushBase jPushBase);


    @GetMapping("/cid?count={value}")
    String getCidList(@PathVariable int value);

}
